#ifndef CROWBAR_RUNTIME_H_INCLUDED
#define CROWBAR_RUNTIME_H_INCLUDED

#include <stddef.h>
#include <windows.h>


#define LogInfo(msg) Log("INFO", __FUNCTION__, msg)
#define LogError(msg) Log("ERROR", __FUNCTION__, msg)
#define LogFatal(msg) do{Log("FATAL", __FUNCTION__, msg); abort();} while(false)


typedef unsigned int addr_t;
typedef unsigned int size_t;
typedef signed __int8 I8;
typedef signed __int16 I16;
typedef signed __int32 I32;
typedef signed __int64 I64;
typedef unsigned __int8 UI8;
typedef unsigned __int16 UI16;
typedef unsigned __int32 UI32;
typedef unsigned __int64 UI64;


void Log(const char * label, const char * func, const char * msg);




#endif // CROWBAR_RUNTIME_H_INCLUDED